package com.foogui.primary.lock;

import javax.lang.model.element.VariableElement;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

public class ReadWriteLockDemo {
    private static ReentrantReadWriteLock rwLock= new ReentrantReadWriteLock();
    private static Lock readLock=rwLock.readLock();
    private static Lock writeLock=rwLock.writeLock();

    private static ReentrantLock lock=new ReentrantLock();

}
